﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SQLRunnerLib.Project;

namespace SqlRunner
{
    public partial class frmPassword : Form
    {
        private SQLEnvironment _environment;

        public frmPassword()
        {
            InitializeComponent();
        }

        public frmPassword(SQLEnvironment environment)
            : this()
        {
            _environment = environment;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            _environment.Password = txtPassword.Text;
            this.DialogResult = DialogResult.OK;
        }

    }
}
